package com.example.boot_mp.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author wm
 * @since 2024-09-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_books")
public class Books implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "bookid", type = IdType.ASSIGN_ID)
    private String bookid;

    private String bookname;

    private String publisher;

    private String author;

    /**
     * 外键
     */
    private String booktype;

    /**
     * 库存
     */
    private Integer remain;


}
